Skip to content

[Snyk] Security upgrade idna from 2.10 to 3.7#9

Open
deargvp1 wants to merge 1 commit into
mainfrom
snyk-fix-3b9a854091a0bcb3afccb61a608324d2
Open

[Snyk] Security upgrade idna from 2.10 to 3.7#9
deargvp1 wants to merge 1 commit into
mainfrom
snyk-fix-3b9a854091a0bcb3afccb61a608324d2

Conversation

@deargvp1
Copy link
Copy Markdown
Owner

@deargvp1 deargvp1 commented May 23, 2026

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • composer/airflow_1_samples/requirements-test.txt
⚠️ Warning
equests 2.23.0 has requirement idna<3,>=2.5, but you have idna 3.10.
pandas-gbq 0.21.0 has requirement google-auth>=2.13.0, but you have google-auth 1.35.0.
grpcio-status 1.62.3 has requirement protobuf>=4.21.6, but you have protobuf 3.20.3.
google-cloud-bigquery 3.30.0 has requirement google-auth<3.0.0dev,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-bigquery-storage 2.36.2 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-auth-oauthlib 1.3.0 has requirement google-auth!=2.43.0,!=2.44.0,!=2.45.0,<3.0.0,>=2.15.0, but you have google-auth 1.35.0.
google-api-core 2.29.0 has requirement google-auth<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
Flask 1.1.4 has requirement itsdangerous<2.0,>=0.24, but you have itsdangerous 2.1.2.
Flask-JWT-Extended 3.25.1 has requirement PyJWT<2.0,>=1.6.4, but you have PyJWT 2.8.0.
Flask-AppBuilder 2.3.4 has requirement email-validator<2,>=1.0.5, but you have email-validator 2.1.0.
apache-airflow 1.10.15 requires thrift, which is not installed.

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Resource Exhaustion


Summary by cubic

Pin idna to >=3.7 in test requirements to address a known vulnerability and harden the Composer sample tests.

  • Dependencies

    • Added idna>=3.7 to composer/airflow_1_samples/requirements-test.txt (fixes SNYK-PYTHON-IDNA-6597975).
  • Migration

    • requests<3 (e.g., requests 2.23.0) requires idna<3. If your test env includes it, upgrade requests or adjust conflicting packages before merging.

Written for commit 8a94472. Summary will update on new commits. Review in cubic

…rabilities

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-IDNA-6597975
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 23, 2026

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 46b7e382-dc20-4122-a908-699fdc1ace5c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch snyk-fix-3b9a854091a0bcb3afccb61a608324d2

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the test requirements by pinning idna to version 3.7 or higher to address a security vulnerability. However, feedback indicates that this change introduces a dependency conflict with apache-airflow 1.10.15 and requests 2.23.0, which require idna to be less than version 3.

@@ -1,2 +1,3 @@
pytest==8.2.0
cloud-composer-dag-test-utils==0.0.1
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This change introduces a dependency conflict. The project uses apache-airflow 1.10.15, which depends on requests 2.23.0. As highlighted in the PR description, requests 2.23.0 requires idna<3,>=2.5. Pinning idna>=3.7 will cause installation failures during dependency resolution because the constraints are mutually exclusive.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="composer/airflow_1_samples/requirements-test.txt">

<violation number="1" location="composer/airflow_1_samples/requirements-test.txt:3">
P1: The `idna>=3.7` pin conflicts with the existing `idna==2.8` constraint (from `constraints.txt`) required by `requests==2.23.0` used by `apache-airflow==1.10.15`. Installing these test requirements together with the Airflow 1.10.x dependencies will either fail pip resolution or break the `requests` dependency chain, causing import errors at test time.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@@ -1,2 +1,3 @@
pytest==8.2.0
cloud-composer-dag-test-utils==0.0.1
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: The idna>=3.7 pin conflicts with the existing idna==2.8 constraint (from constraints.txt) required by requests==2.23.0 used by apache-airflow==1.10.15. Installing these test requirements together with the Airflow 1.10.x dependencies will either fail pip resolution or break the requests dependency chain, causing import errors at test time.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At composer/airflow_1_samples/requirements-test.txt, line 3:

<comment>The `idna>=3.7` pin conflicts with the existing `idna==2.8` constraint (from `constraints.txt`) required by `requests==2.23.0` used by `apache-airflow==1.10.15`. Installing these test requirements together with the Airflow 1.10.x dependencies will either fail pip resolution or break the `requests` dependency chain, causing import errors at test time.</comment>

<file context>
@@ -1,2 +1,3 @@
 pytest==8.2.0
 cloud-composer-dag-test-utils==0.0.1
+idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
</file context>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants